package com.ftd.controller;

import com.ftd.DBConnection.DBConnection;
import com.ftd.viewmodel.ApiResult;
import com.ftd.viewmodel.MapResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by apple on 16/8/6.
 */
@RestController
public class PersonalController {
    @RequestMapping("personal")
    public ApiResult personal(String username,String phonenumber_al,String sex,String phonenumber){
        DBConnection.update3(username,phonenumber_al,sex,phonenumber);
        MapResult mapResult = new MapResult();
        mapResult.put("isSuccess",true);
        return mapResult;
    }
}
